#ifndef _MY_TASKBAR_ICON_H_
#define _MY_TASKBAR_ICON_H_

#include "wx/taskbar.h"
#include "Control_Pref.h"
#include "MyContextMenu.h"

class MyTaskBarIcon : public wxTaskBarIcon  
{
public:
	MyTaskBarIcon(wxFrame* parent);
	wxFrame* GetParentFrame(){ return parent; }
	virtual ~MyTaskBarIcon();
private:
	void OnLeftButtonClick(wxTaskBarIconEvent&);
	void OnRightButtonClick(wxTaskBarIconEvent&);
	void OnTaskBarMenuClick( wxCommandEvent& event);
	wxFrame* parent;
	DECLARE_EVENT_TABLE()

};

class TaskBarIconContextMenu : public wxMenu{
public:
	TaskBarIconContextMenu(MyTaskBarIcon* taskBarIcon);
private:
	MyTaskBarIcon* taskBarIcon;
};

#endif 
